-
Notifications
You must be signed in to change notification settings - Fork 32
✨ Add ordering and filtering when listing Functions #8229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add ordering and filtering when listing Functions #8229
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8229 +/- ##
==========================================
- Coverage 86.76% 85.38% -1.38%
==========================================
Files 1916 743 -1173
Lines 74032 34281 -39751
Branches 1300 175 -1125
==========================================
- Hits 64234 29272 -34962
+ Misses 9407 4952 -4455
+ Partials 391 57 -334
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🧪 CI InsightsHere's what we observed from your CI run for a4a823a. ✅ Passed Jobs With Interesting Signals
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds ordering and filtering capabilities to the function listing endpoint. It enhances the API to support searching functions by title or multi-column search, as well as ordering results by different fields like creation date, modification date, or name.
- Adds query parameters for ordering, filtering, and searching functions
- Updates the REST schema to include new parameter types and validation
- Extends test coverage to verify the new ordering and filtering functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
_functions_rest_schemas.py |
Defines new query parameter schemas for ordering, filtering, and search functionality |
_functions_rest.py |
Updates the list_functions endpoint to handle new ordering and filtering parameters |
openapi.yaml |
Adds new query parameters to the OpenAPI specification |
test_functions_controller_rest.py |
Adds comprehensive tests for the new ordering and filtering features |
services/web/server/tests/unit/with_dbs/04/functions/test_functions_controller_rest.py
Outdated
Show resolved
Hide resolved
services/web/server/tests/unit/with_dbs/04/functions/test_functions_controller_rest.py
Outdated
Show resolved
Hide resolved
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might need to update the minor version of the webserver openapi? make version-minor or similar
Done, thanks for the command. |
|
@Mergifyio queue |
🟠 Waiting for conditions to match
|
services/web/server/tests/unit/with_dbs/04/functions/test_functions_controller_rest.py
Outdated
Show resolved
Hide resolved
|



What do these changes do?
This PR adds ordering and filtering capabilities to the function listing endpoint. It enhances the API to support searching functions by title or multi-column search, as well as ordering results by different fields like creation date, modification date, or name.
Related issue/s
How to test
Dev-ops